{extend name="common:base" /}
{block name="body"}
<div class="fly-home fly-panel" style="background-image: url();">
  <img src="{$user['avatar']}_large.png" alt="{$user['username']}">
<!--  <i class="iconfont icon-renzheng" title="Fly社区认证"></i>-->
  <h1>{$user['username']}<i class="iconfont icon-nan"></i>
    <!-- <i class="iconfont icon-nv"></i>  -->
    <i class="layui-badge fly-badge-vip">{$user.group_id|get_group_name}</i>
    <!--
    <span style="color:#c00;">（管理员）</span>
    <span style="color:#5FB878;">（社区之光）</span>
    <span>（该号已被封）</span>
    -->
  </h1>
  <p class="fly-home-info">
<!--    <i class="iconfont icon-kiss" title="飞吻"></i><span style="color: #FF7200;">66666 积分</span>-->
    <i class="iconfont icon-shijian"></i><span>{$user['create_time']|friendlydate} 加入</span>
    <i class="iconfont icon-chengshi"></i><span>来自{$user['hometown']}</span>
  </p>

  <p class="fly-home-sign">{if condition="$user['signature'] neq null"}{$user['signature']}{else/}TA还未设置签名哦{/if}</p>

  <!--<div class="fly-sns" data-user="">
    <a href="javascript:;" class="layui-btn layui-btn-primary fly-imActive" data-type="addFriend">加为好友</a>
    <a href="javascript:;" class="layui-btn layui-btn-normal fly-imActive" data-type="chat">发起会话</a>
  </div>-->

</div>

<div class="layui-container">
  <div class="layui-row layui-col-space15">
    <div class="layui-col-md6 fly-home-jie">
      <div class="fly-panel">
        <h3 class="fly-panel-title">{$user['username']} 最近的提问</h3>
        <ul class="jie-row">
		{volist name="user_topic" id="vo"}
          <li>
	        {eq name="vo.is_top" value="1"}
            <span class="layui-badge layui-bg-black">顶</span>
            {/eq}
	        {eq name="vo.is_recommend" value="1"}
            <span class="fly-jing">精</span>
            {/eq}
            <a href="{:url('topic/detail',array('id'=>$vo.id))}" class="jie-title">{$vo.title}</a>
            <i>{$vo.update_time|friendlydate}</i>
            <em class="layui-hide-xs">{$vo.views}阅/{$vo.posts}答</em>
          </li>
		{/volist}

          <!-- <div class="fly-none" style="min-height: 50px; padding:30px 0; height:auto;"><i style="font-size:14px;">没有发表任何求解</i></div> -->
        </ul>
      </div>
    </div>
    
    <div class="layui-col-md6 fly-home-da">
      <div class="fly-panel">
        <h3 class="fly-panel-title">{$user['username']} 最近的回答</h3>
        <ul class="home-jieda">
	    {volist name="user_post" id="vo"}
          <li>
          <p>
          <span>{$vo.update_time|friendlydate}</span>
          在<a href="{:url('topic/detail',['id'=>$vo.topic_id])}" target="_blank">{$vo.title}</a>中回答：
          </p>
          <div class="home-dacontent">{$vo.content|raw}</div>
        </li>
        {/volist}
        </ul>
      </div>
    </div>
  </div>
</div>
 {/block}